Skip to content

outcalls: auto generate name to improve multi-tenancy#402

Draft
bloom1 wants to merge 4 commits intomasterfrom
WAZO-3314-multi-tenant-outcall
Draft

outcalls: auto generate name to improve multi-tenancy#402
bloom1 wants to merge 4 commits intomasterfrom
WAZO-3314-multi-tenant-outcall

Conversation

@bloom1
Copy link
Copy Markdown
Member

@bloom1 bloom1 commented Jul 6, 2023

@wazo-community-zuul
Copy link
Copy Markdown
Contributor

Build failed.

@bloom1 bloom1 force-pushed the WAZO-3314-multi-tenant-outcall branch from 298f8e5 to 97549ab Compare July 6, 2023 19:48
@wazo-community-zuul
Copy link
Copy Markdown
Contributor

Build failed.

@wazo-community-zuul
Copy link
Copy Markdown
Contributor

Build succeeded.

@bloom1 bloom1 added the mergeit label Jul 7, 2023
@bloom1 bloom1 force-pushed the WAZO-3314-multi-tenant-outcall branch from 26fe1c3 to 045c899 Compare July 10, 2023 13:29
@wazo-community-zuul
Copy link
Copy Markdown
Contributor

Build succeeded.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

dump_only=True,
)

# DEPRECATED 23.10
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# DEPRECATED 23.10
# DEPRECATED 23.11

# Outcalls do not use UUIDs yet
form['name'] = self.outcall_name_fmt.format(
tenant_slug=tenant.slug,
outcall_uuid=uuid4(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as: #401 (comment)
About adding uuid in database

Comment on lines -50 to -55
yield s.check_bogus_field_returns_error, url, 'name', True
yield s.check_bogus_field_returns_error, url, 'name', None
yield s.check_bogus_field_returns_error, url, 'name', s.random_string(129)
yield s.check_bogus_field_returns_error, url, 'name', 1234
yield s.check_bogus_field_returns_error, url, 'name', []
yield s.check_bogus_field_returns_error, url, 'name', {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as #401 (comment)
about testing deprecated name

@@ -15,5 +14,4 @@ def build_validator():
create=[
UniqueField('name', lambda name: outcall_dao.find_by(name=name), 'Outcall')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove this validator too, since the input does not come from the user anymore

@sduthil sduthil removed the mergeit label Mar 15, 2024
@sduthil sduthil marked this pull request as draft March 15, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants